home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacTech 1 to 12
/
MacTech-vol-1-12.toast
/
Source
/
MacTech® Magazine
/
Volume 07 - 1991
/
07.02 Feb 91
/
xserial source ƒ
/
wait.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-07-27
|
305 b
|
17 lines
|
[
TEXT/KAHL
]
/* waits for the specified number of seconds. should be used only
* for testing as this throws the program into a tight loop and
* nothing else is done.
*/
wait(amount)
short amount;
{
long start;
long test;
GetDateTime(&start);
do {
GetDateTime(&test);
}
while (test - start < amount);
}